package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 审批记录表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_approval_record")
@ApiModel(value = "CgnciApprovalRecordDO对象", description = "审批记录表")
public class CgnciApprovalRecordDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("approval_record_id")
    @TableId(value = "approval_record_id", type = IdType.ASSIGN_ID)
    private Long approvalRecordId;

    @ApiModelProperty("审批发起表approval_info")
    private Long approvalInfoId;

    @ApiModelProperty("表单ID 属于那个表单的流程")
    private String formId;

 /*   @ApiModelProperty("审批人")
    private String approverUserId;*/

    @ApiModelProperty("审批时间")
    private Date approverTime;

    @ApiModelProperty("审批意见")
    private String approverOpinions;

    @ApiModelProperty("属于个节点的审批记录")
    private Integer approvalNode;

    @ApiModelProperty("当前处理人节点")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String currentApproverNode;

/*    @ApiModelProperty("当前处理人")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String currentApprover;

    @ApiModelProperty("当前处理人名字")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String currentApproverName;*/

    @ApiModelProperty("当前处理人工号-姓名")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String currentApproverAndName;

    @ApiModelProperty("上一环节处理人节点")
    private String previousApproverNode;

/*    @ApiModelProperty("上一环节处理人")
    private String previousApprover;

    @ApiModelProperty("上一环节处理人名字")
    private String previousApproverName;*/

    @ApiModelProperty("上一环节处理人工号-名称")
    private String previousApproverAndName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;


}
